<?php

require_once dirname(__FILE__).'/../lib/dia_trabajadoGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/dia_trabajadoGeneratorHelper.class.php';

/**
 * dia_trabajado actions.
 *
 * @package    control_obras
 * @subpackage dia_trabajado
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class dia_trabajadoActions extends autoDia_trabajadoActions
{
  public function executeVerDiaTrabajadoPorPersonalQuincena(sfWebRequest $request)
  {
    $filtros = $this->configuration->getFilterDefaults();

    $filtros['personal_quincena_id'] = $request->getParameter('personal_quincena_id');

    $this->getUser()->setAttribute('dia_trabajado.filters', $filtros, 'admin_module');

    $this->redirect('@dia_trabajado');
  }
}
